package com.gitee.designpattern.singleton.lazyunsafe;

/**
 * @author ming.yan-1
 * @version V1.0
 * @Title com.gitee.designpattern.singleton.lazyUnsafe
 * @Description 懒汉模式，线程不安全
 * @date 2018/8/30  下午5:42
 */
public class Singleton {
    private static Singleton singleton;
    private Singleton() {
    }

    public static Singleton getInstance(){
        if(singleton == null){
            singleton = new Singleton();
        }
        return singleton;
    }
}
